package com.ilancuo.thinkinjava;

public class VarargType {
    static void f(int... args) {
        System.out.print(args.getClass() + "\t");
        System.out.println("length: " + args.length);
    }

    static void g(Integer... args) {
        System.out.print(args.getClass() + "\t");
        System.out.println("length: " + args.length);
    }

    public static void main(String[] args) {
        f();
        f(1);
        g();
        g(1);
    }
}
